/**
 * #info
 *
 *@author   zhengshundong
 *@createTime   2019/12/13
 *@updateTime   2019/12/13
 *@description  slider-marker  component  滑块标记插件
 */
import config from '../../../config/config.js'
// prefix
const prefixCls = config.prefix + '-slider-marks'
export default {
    name: prefixCls,
    props: {
        mark: {
            type: [String, Object]
        }
    },
    render (h) {
        let label = typeof this.mark === 'string' ? this.mark : [this.mark.label];

        return h('div', {
            class: `${prefixCls}-item`,
            style: this.mark.style || {}
        }, label);
    }
};
